Repository navigation
feat(opencode): purpose designations + decision/embed/Groq purpose pools (#13675 Parts 1+3a) - #13689
Merged
Merged
Conversation
…ols (#13675 Parts 1+3a) - New top-level model_designations registry (closed purpose/capability vocabularies) and pool-level "purpose" on model_routes (absent = chat). - bin/check-opencode-route-rules.mjs enforces designations over EVERY pool (same resolver: provider-route expansion + instanceOf following): designated leaf must match pool purpose, vocabularies are closed, and a model designated without chat can never resolve into a chat pool (the systemone convention, mechanised). 7 new tests; all suites green. - systemone: purpose "decision"; second leg google-free/gemini-decision-1 (weights 3/3), seated only after a live probe of POST /v1beta/decisions with the muse project key returned 200 (evidence on #13675). Paid Zen legs (jev-1.13, gpt-6-luna-decision, gemini-decision-1) stay OFF. - New purpose pools: gemini-embed-plan (embed), stt-plan (transcribe, Groq Whisper), tts-plan (speak, Groq Orpheus - playai-tts is absent from the groq catalog), prompt-guard-plan (guard, Groq prompt-guard). - The four free google.* aliases gain options.endpoints descriptors (google-decisions /decisions, google-embed /models/{model}:embedContent); google.developing-today untouched.
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 1 minute. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Lane DECISION-API Worker A — Parts 1 + 3a of #13675 (config + checker slice). Proxy slice (Part 2) is a separate worker; this PR does not touch
bin/opencode-route-proxy.mjs.What lands
model_designationstop-level registry in.opencode/opencode.jsonc(dated 2026-11-23 comment citing Decision API + non-LLM endpoints: purpose designations, native endpoint dispatch, decision pool wiring (Jev + Google Decision free-first, Luna harness experiment) #13675), keyed by bare model id →{purposes, capabilities}. Closed vocabularies — purposes: chat, decision, embed, rerank, recommend, transcribe, speak, guard (incl. the coordination extension); capabilities: visual, pdf, audio-in, audio-bidir, tts, stt. Pool-level"purpose"onmodel_routesentries (absent = chat).bin/check-opencode-route-rules.mjs):inspectRouteRulesnow walks every pool inmodel_routeswith the existing resolver (provider-route expansion +instanceOffollowing) and enforces (a) designated leaf ⇒ pool purpose ∈ its purposes, (b) closed vocabularies for designation + pool purpose values, (c) a model designated withoutchatnever resolves into a chat-purpose pool — the systemone convention mechanised. 7 new tests prove each rule fires and passes.systemone:"purpose": "decision", targetszen-plans/jev-1.13-free+google-free/gemini-decision-1, weights 3/3. Paid Zen legs (jev-1.13, gpt-6-luna-decision, gemini-decision-1) stay OFF (paste-ready comment kept accurate).[decision]; gemini-embedding-2 / gemini-embedding-001 →[embed]; Groq shelf below.gemini-embed-plan(embed, google-free embedding pair, round-robin 3/3),stt-plan(transcribe),tts-plan(speak),prompt-guard-plan(guard).google.*provider blocks gainoptions.endpoints—decision: {kind: google-decisions, path: /decisions},embed: {kind: google-embed, path: /models/{model}:embedContent}.google.developing-todayuntouched.Groq verification (config catalog is the evidence)
Verified in the
groqprovider block of this config:whisper-large-v3,whisper-large-v3-turbo→ transcribe [stt, audio-in];meta-llama/llama-prompt-guard-2-22m,meta-llama/llama-prompt-guard-2-86m→ guard.playai-ttsis NOT in the catalog (Groq shut PlayAI TTS down) — the catalog's verified TTS shelf iscanopylabs/orpheus-v1-english+canopylabs/orpheus-arabic-saudi, designated speak [tts] and seated intts-planinstead. Gap recorded in config comments.Live probe (evidence gate, before seating)
POST https://generativelanguage.googleapis.com/v1beta/decisionswith the muse project key (fetched by namegoogle.gemini-api-keyviafleet secrets get; value never recorded), documented shape{"model":"gemini-decision-1","input":"I was charged twice for my order.","questions":{"is_billing":{"type":"noul","instructions":"Is this a billing problem?"}}}→ HTTP 200,answers.is_billing = {noul: 0.99, confidence: 0.99, type: "noul"}, usage 96 input / 0 output tokens. So the google leg is seated.Validation
node bin/check-opencode-route-rules.mjs— passednode bin/check-opencode-metered-providers.mjs— passednode bin/check-opencode-go-seating.mjs— fails identically on unmodified main (4 Go leaves with no successful route attempt in the live window; a live-state check, pre-existing, unrelated to this diff)node --testsuites: route-rules 30/30, metered + go-seating 32/32Coordination
Checked open PRs before editing: no WIRE-FREE (#13677) config PR was in flight (that lane was still in prep), so this branch is based on main (
2d21fb369b5). WIRE-FREE rebases on this once landed, per the coordination comments on #13675/#13677.Refs #13675
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.